package com.happyass.show.controller;

import com.happyass.show.service.ActivityService;
import com.happyass.show.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

/**
 * TODO
 *
 * @author admin
 * @date 2021/1/5 16:50
 *
 * <P></P>
 **/

@Controller
@RequestMapping("/show")
public class ShowController {
//前台展示列表


    @Autowired
    PlanService planService;
    @Autowired
    ActivityService activityService;

    @RequestMapping("/timeList")
    public String showList(Model map){

        HashMap<String, Object> all = planService.showTimeList();
        map.addAttribute("dayMap",all.get("dayMap"));
        map.addAttribute("nightMap",all.get("nightMap"));
        return "/show/showIndex";
    }


}
